<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <div class="floor" v-for="(floor,index1)  in floors">
      <h2>{{floor.title}} - {{index1}}</h2>
      <div class="items">
        <div class="item" v-for="(item,index2) in floor.items">
          <h3>商品名称： {{item.name}}-{{index2}}</h3>
          <p>商品价格： {{item.price}}</p>
        </div>
      </div>
    </div>
  </div>
  <script src="./vue.js"></script>
  <script>
    const vm = new Vue({
      el: '#app',
      data: {
        floors: [
          {
            title:"手机",
            items: [
              {
                name:"商品1",
                price:222
              },
              {
                name:"商品2",
                price:222
              },
              {
                name:"商品3",
                price:222
              }
            ]
          },
          {
            title:"电脑",
            items: [
              {
                name:"电脑-商品1",
                price:222
              },
              {
                name:"电脑-商品2",
                price:222
              },
              {
                name:"电脑-商品3",
                price:222
              }
            ]
          },
          {
            title:"电视",
            items: [
              {
                name:"电视-商品1",
                price:222
              },
              {
                name:"电视-商品2",
                price:222
              },
              {
                name:"电视-商品3",
                price:222
              }
            ]
          }
        ]
      }
    })
  </script>
</body>
</html>